{#include file="aj/pageheader.html"#}
<script>
        KE.show({
                id : 'content',
				resizeMode : 0
        });
</script>
<h1>
<span class="action-span1"><a href="#">修改图片</a> </span>
<span class="action-span"><a href="{#spUrl c=pageimg a=index nid=$smarty.get.nid#}">图片列表</a></span>
</h1>
<div class="main-div">
<form method="post" action="{#spUrl c=pageimg a=update#}" name="theForm"  onsubmit="return validate()" enctype="multipart/form-data">
<table cellspacing="1" cellpadding="3" width="100%">
  <tr>
    <td class="label">链接</td>
    <td><input type="text" name="link" size = "60" value="{#$detail.link#}"/>&nbsp;<font color="#FF0000">*</font></td>
  </tr>
  {#if $smarty.get.nid#}
  <tr>
    <td class="label">产品图片:</td>
    <td>
      <input type="file" name="upfile"/>{#if $smarty.get.nid eq 1#}1920px*550px{#elseif $smarty.get.nid eq 2#}190px*105px{#elseif $smarty.get.nid eq 4#}963px*172px{#else#}1920px*537px{#/if#}
    </td>
  </tr>
  {#/if#}
  {#if $smarty.get.nid eq 1 or $smarty.get.nid eq 3#}
  <tr>
    <td class="label">描述:</td>
    <td>
      <input type="text" name='description' value="{#$detail.description#}" size="80"/>
    </td>
  </tr>
  {#/if#}
  <tr>
    <td class="label">排序:</td>
    <td>
      <input type="text" name='sort_id' value="{#$detail.sort_id#}" size="15" />
    </td>
  </tr>
  <tr style="display:none">
  <td class="label" style="display:none">显示:</td>
    <td style="display:none">
      <input type="radio" name="is_open" value="1" {#if $detail.is_open==1#} checked="checked" {#/if#}/>显示&nbsp;&nbsp;
      <input type="radio" name="is_open" value="0" {#if $detail.is_open==0#} checked="checked" {#/if#}/>隐藏
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center"><br />
   	  <input type="hidden" name="id" value="{#$detail.id#}" />
      <input type="hidden" name="nid" value="{#$smarty.get.nid#}" />
      <input type="submit" class="button" value="提交" />
      <input type="reset" class="button" value="重置" />
      
    </td>
  </tr>
</table>
</form>
</div>
{#include file="aj/pagefooter.html"#}